home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / libelf / elf_getshdr.z / elf_getshdr
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  58 lines

  1. ELF_GETSHDR(3E)                                        Last changed: 1-8-99
  2.  
  3.  
  4. NNAAMMEE
  5.      eellff__ggeettsshhddrr, eellff3322__ggeettsshhddrr, eellff6644__ggeettsshhddrr - Retrieves class-dependent
  6.      section header
  7.  
  8. SSYYNNOOPPSSIISS
  9.      cccc [_f_l_a_g ...] _f_i_l_e ...  --lleellff [_l_i_b_r_a_r_y ...]
  10.  
  11.      ##iinncclluuddee <<lliibbeellff..hh>>
  12.  
  13.      EEllff3322__SShhddrr **eellff3322__ggeettsshhddrr((EEllff__SSccnn **ssccnn));;
  14.  
  15.      EEllff6644__SShhddrr **eellff3322__ggeettsshhddrr((EEllff__SSccnn **ssccnn));;
  16.  
  17. IIMMPPLLEEMMEENNTTAATTIIOONN
  18.      IRIX systems
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      For a 32-bit class file, eellff3322__ggeettsshhddrr returns a pointer to a section
  22.      header for the section descriptor ssccnn.  If the file is not a 32-bit
  23.      class file, ssccnn was null, or an error occurred, eellff3322__ggeettsshhddrr returns
  24.      null.
  25.  
  26.      The header includes the following members:
  27.  
  28.      EEllff3322__WWoorrdd      sshh__nnaammee;;
  29.  
  30.      EEllff3322__WWoorrdd      sshh__ttyyppee;;
  31.  
  32.      EEllff3322__WWoorrdd      sshh__ffllaaggss;;
  33.  
  34.      EEllff3322__AAddddrr      sshh__aaddddrr;;
  35.  
  36.      EEllff3322__OOffff       sshh__ooffffsseett;;
  37.  
  38.      EEllff3322__WWoorrdd      sshh__ssiizzee;;
  39.  
  40.      EEllff3322__WWoorrdd      sshh__lliinnkk;;
  41.  
  42.      EEllff3322__WWoorrdd      sshh__iinnffoo;;
  43.  
  44.      EEllff3322__WWoorrdd      sshh__aaddddrraalliiggnn;;
  45.  
  46.      EEllff3322__WWoorrdd      sshh__eennttssiizzee;;
  47.  
  48.      If the program is building a new file, it is responsible for creating
  49.      the file's ELF header before creating sections.
  50.  
  51.      The 64-bit class works identically, simply replacing all instances of
  52.      32 in the description and table with 64.
  53.  
  54. SSEEEE AALLSSOO
  55.      eellff(3E), eellff__ffllaagg(3E), eellff__ggeettssccnn(3E), eellff__ssttrrppttrr(3E)
  56.  
  57.      This man page is available only online.
  58.